#include <ledParamTables.h>
/* Efficiency is 1024 @25C , the value is 990*1024/1000 when efficiency is 99.0% */ 
static const TempParams_t TEMP_CURVE_TABLE_RED[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1158U,36,1018U,1015U},
/*2*/{1147U,33,1019U,1016U},
/*4*/{1136U,30,1019U,1016U},
/*6*/{1124U,27,1020U,1017U},
/*8*/{1113U,24,1020U,1018U},
/*10*/{1102U,21,1020U,1019U},
/*12*/{1091U,18,1021U,1019U},
/*14*/{1080U,15,1021U,1020U},
/*16*/{1068U,12,1022U,1021U},
/*18*/{1057U,9,1022U,1021U},
/*20*/{1046U,6,1023U,1022U},
/*22*/{1035U,3,1023U,1023U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1012U,-3,1024U,1024U},
/*28*/{1001U,-6,1024U,1025U},
/*30*/{990U,-9,1025U,1026U},
/*32*/{979U,-12,1025U,1026U},
/*34*/{967U,-15,1026U,1027U},
/*36*/{956U,-18,1026U,1028U},
/*38*/{945U,-21,1027U,1028U},
/*40*/{934U,-24,1027U,1029U},
/*42*/{923U,-27,1027U,1030U},
/*44*/{911U,-30,1028U,1031U},
/*46*/{900U,-33,1028U,1031U},
/*48*/{889U,-36,1029U,1032U},
/*50*/{878U,-39,1029U,1033U},
/*52*/{866U,-42,1030U,1033U},
/*54*/{855U,-45,1030U,1034U},
/*56*/{844U,-48,1031U,1035U},
/*58*/{833U,-51,1031U,1036U},
/*60*/{822U,-54,1031U,1036U},
/*62*/{810U,-57,1032U,1037U},
/*64*/{799U,-60,1032U,1038U},
/*66*/{788U,-63,1033U,1038U},
/*68*/{777U,-66,1033U,1039U},
/*70*/{766U,-69,1034U,1040U},
/*72*/{754U,-72,1034U,1041U},
/*74*/{743U,-75,1034U,1041U},
/*76*/{732U,-78,1035U,1042U},
/*78*/{721U,-81,1035U,1043U},
/*80*/{709U,-84,1036U,1043U},
/*82*/{698U,-87,1036U,1044U},
/*84*/{687U,-90,1037U,1045U},
/*86*/{676U,-93,1037U,1046U},
/*88*/{665U,-96,1038U,1046U},
/*90*/{653U,-99,1038U,1047U},
/*92*/{642U,-102,1038U,1048U},
/*94*/{631U,-105,1039U,1048U},
/*96*/{620U,-108,1039U,1049U},
/*98*/{609U,-111,1040U,1050U},
/*100*/{597U,-114,1040U,1051U},
/*102*/{586U,-117,1041U,1051U},
/*104*/{575U,-120,1041U,1052U},
/*106*/{564U,-123,1042U,1053U},
/*108*/{552U,-126,1042U,1053U},
/*110*/{541U,-129,1042U,1054U},
/*112*/{530U,-132,1043U,1055U},
/*114*/{519U,-135,1043U,1056U},
/*116*/{508U,-138,1044U,1056U},
/*118*/{496U,-141,1044U,1057U},
/*120*/{485U,-144,1045U,1058U},


};

static const TempParams_t TEMP_CURVE_TABLE_GREEN[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1037U,36,992U,1030U},
/*2*/{1035U,33,995U,1030U},
/*4*/{1034U,30,997U,1029U},
/*6*/{1033U,27,1000U,1029U},
/*8*/{1032U,24,1003U,1028U},
/*10*/{1031U,21,1005U,1027U},
/*12*/{1030U,18,1008U,1027U},
/*14*/{1029U,15,1010U,1026U},
/*16*/{1028U,12,1013U,1026U},
/*18*/{1027U,9,1016U,1025U},
/*20*/{1026U,6,1018U,1025U},
/*22*/{1025U,3,1021U,1024U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1022U,-3,1026U,1023U},
/*28*/{1021U,-6,1029U,1022U},
/*30*/{1020U,-9,1031U,1022U},
/*32*/{1019U,-12,1034U,1021U},
/*34*/{1018U,-15,1037U,1021U},
/*36*/{1017U,-18,1039U,1020U},
/*38*/{1016U,-21,1042U,1020U},
/*40*/{1015U,-24,1044U,1019U},
/*42*/{1014U,-27,1047U,1018U},
/*44*/{1013U,-30,1050U,1018U},
/*46*/{1012U,-33,1052U,1017U},
/*48*/{1010U,-36,1055U,1017U},
/*50*/{1009U,-39,1057U,1016U},
/*52*/{1008U,-42,1060U,1016U},
/*54*/{1007U,-45,1063U,1015U},
/*56*/{1006U,-48,1065U,1014U},
/*58*/{1005U,-51,1068U,1014U},
/*60*/{1004U,-54,1071U,1013U},
/*62*/{1003U,-57,1073U,1013U},
/*64*/{1002U,-60,1076U,1012U},
/*66*/{1001U,-63,1078U,1012U},
/*68*/{1000U,-66,1081U,1011U},
/*70*/{999U,-69,1084U,1011U},
/*72*/{997U,-72,1086U,1010U},
/*74*/{996U,-75,1089U,1009U},
/*76*/{995U,-78,1091U,1009U},
/*78*/{994U,-81,1094U,1008U},
/*80*/{993U,-84,1097U,1008U},
/*82*/{992U,-87,1099U,1007U},
/*84*/{991U,-90,1102U,1007U},
/*86*/{990U,-93,1105U,1006U},
/*88*/{989U,-96,1107U,1005U},
/*90*/{988U,-99,1110U,1005U},
/*92*/{987U,-102,1112U,1004U},
/*94*/{986U,-105,1115U,1004U},
/*96*/{984U,-108,1118U,1003U},
/*98*/{983U,-111,1120U,1003U},
/*100*/{982U,-114,1123U,1002U},
/*102*/{981U,-117,1125U,1001U},
/*104*/{980U,-120,1128U,1001U},
/*106*/{979U,-123,1131U,1000U},
/*108*/{978U,-126,1133U,1000U},
/*110*/{977U,-129,1136U,999U},
/*112*/{976U,-132,1139U,999U},
/*114*/{975U,-135,1141U,998U},
/*116*/{974U,-138,1144U,998U},
/*118*/{973U,-141,1146U,997U},
/*120*/{971U,-144,1149U,996U},

};


static const TempParams_t TEMP_CURVE_TABLE_BLUE[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1010U,36,1032U,997U},
/*2*/{1011U,33,1031U,999U},
/*4*/{1012U,30,1031U,1001U},
/*6*/{1013U,27,1030U,1003U},
/*8*/{1014U,24,1029U,1006U},
/*10*/{1015U,21,1029U,1008U},
/*12*/{1017U,18,1028U,1010U},
/*14*/{1018U,15,1027U,1012U},
/*16*/{1019U,12,1026U,1015U},
/*18*/{1020U,9,1026U,1017U},
/*20*/{1021U,6,1025U,1019U},
/*22*/{1022U,3,1024U,1021U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1025U,-3,1023U,1026U},
/*28*/{1026U,-6,1022U,1028U},
/*30*/{1027U,-9,1021U,1030U},
/*32*/{1028U,-12,1021U,1032U},
/*34*/{1029U,-15,1020U,1035U},
/*36*/{1030U,-18,1019U,1037U},
/*38*/{1032U,-21,1018U,1039U},
/*40*/{1033U,-24,1018U,1041U},
/*42*/{1034U,-27,1017U,1044U},
/*44*/{1035U,-30,1016U,1046U},
/*46*/{1036U,-33,1016U,1048U},
/*48*/{1037U,-36,1015U,1050U},
/*50*/{1039U,-39,1014U,1053U},
/*52*/{1040U,-42,1013U,1055U},
/*54*/{1041U,-45,1013U,1057U},
/*56*/{1042U,-48,1012U,1059U},
/*58*/{1043U,-51,1011U,1061U},
/*60*/{1044U,-54,1011U,1064U},
/*62*/{1046U,-57,1010U,1066U},
/*64*/{1047U,-60,1009U,1068U},
/*66*/{1048U,-63,1008U,1070U},
/*68*/{1049U,-66,1008U,1073U},
/*70*/{1050U,-69,1007U,1075U},
/*72*/{1051U,-72,1006U,1077U},
/*74*/{1053U,-75,1006U,1079U},
/*76*/{1054U,-78,1005U,1082U},
/*78*/{1055U,-81,1004U,1084U},
/*80*/{1056U,-84,1003U,1086U},
/*82*/{1057U,-87,1003U,1088U},
/*84*/{1058U,-90,1002U,1090U},
/*86*/{1060U,-93,1001U,1093U},
/*88*/{1061U,-96,1001U,1095U},
/*90*/{1062U,-99,1000U,1097U},
/*92*/{1063U,-102,999U,1099U},
/*94*/{1064U,-105,998U,1102U},
/*96*/{1065U,-108,998U,1104U},
/*98*/{1067U,-111,997U,1106U},
/*100*/{1068U,-114,996U,1108U},
/*102*/{1069U,-117,996U,1111U},
/*104*/{1070U,-120,995U,1113U},
/*106*/{1071U,-123,994U,1115U},
/*108*/{1072U,-126,993U,1117U},
/*110*/{1073U,-129,993U,1119U},
/*112*/{1075U,-132,992U,1122U},
/*114*/{1076U,-135,991U,1124U},
/*116*/{1077U,-138,991U,1126U},
/*118*/{1078U,-141,990U,1128U},
/*120*/{1079U,-144,989U,1131U},


};



TempParams_t const * LP_GetTempTableRed(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_RED;
}

TempParams_t const * LP_GetTempTableGreen(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_GREEN;
}

TempParams_t const * LP_GetTempTableBlue(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_BLUE;
}



/*
const AccurateColorXYY_t calibratedColortable[] = 
{
  {21845, 21845, 100, 255,255,255},
  {X0, Y0, 100, 254,254,255},
};
*/



